package com.gdepri.mqtt;

import com.gdepri.mqtt.subscriber.SubscribeSampleV2;
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

import java.util.Iterator;

@SpringBootApplication
public class YibuMqttSampleApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(YibuMqttSampleApplication.class, args);
        System.out.println("hello world");
        ConfigurableListableBeanFactory beanFactory = run.getBeanFactory();
        System.out.println("----------");
        Object mixture = beanFactory.getBean("mixture");
        Mixture mix = (Mixture) mixture;;
        mix.send("你他妈");

    }

}
